package com.springboot.cms.entity;


import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by wangxianhong on 2017/7/2.
 * 文章专栏 文章专题
 */
@Entity
@Table(name = "tb_article_column")
public class ArticleColumn implements Serializable {

	@Id
	@Column
	private String id;//文章id


	@Column(nullable = false, unique = true)
	private String name;//专栏名称 非空唯一不重复

	private Boolean status = true;//状态 true 可用 false 不可用

	@Column(length = 3)
	private Integer sort = 0;//排序

	public ArticleColumn(String id, String name, Boolean status, Integer sort) {
		this.id = id;
		this.name = name;
		this.status = status;
		this.sort = sort;
	}


	public ArticleColumn() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
}
